import request from '@/utils/request'

export function getProject(data) {
  return request({
    url: '/report/getProject',
    method: 'post',
    data
  })
}

export function getProjectPage(val) {
  return request({
    url: '/report/getProject?page=' + val,
    method: 'get',
    val
  })
}

export function finishProject(data) {
  return request({
    url: '/report/finishProject',
    method: 'post',
    data
  })
}

export function getProjectForId(data) {
  return request({
    url: '/report/getProjectForId',
    method: 'post',
    data
  })
}

export function insertReport(data) {
  return request({
    url: 'report/insertReport',
    method: 'post',
    data
  })
}

export function selectReport(data) {
  return request({
    url: 'report/selectReport',
    method: 'post',
    data
  })
}

export function selectReportPage(val, data) {
  return request({
    url: 'report/selectReport?page=' + val,
    method: 'post',
    data
  })
}

export function searchReport(data) {
  return request({
    url: 'report/searchReport',
    method: 'post',
    data
  })
}

export function searchReportPage(val, data) {
  return request({
    url: 'report/searchReport?page=' + val,
    method: 'post',
    data
  })
}

export function exportReport(data) {
  return request({
    url: 'report/exportReport',
    method: 'post',
    data
  })
}

export function getReportSituation(data) {
  return request({
    url: 'report/getReportSituation',
    method: 'post',
    data
  })
}

export function getReportSituationPage(val, data) {
  return request({
    url: 'report/getReportSituation?page=' + val,
    method: 'post',
    data
  })
}

